﻿using System.Collections.ObjectModel;
using System;

namespace Ausy.Silverlight.Survey.QuestionModule.Model
{
    /// <summary>
    /// Cette classe représente un Questionnaire
    /// </summary>
    public class Questionnaire
    {
        #region Identifier Property

        /// <summary>
        /// Identifiant du Questionnaire
        /// </summary>
        public Guid Identifier { get; set; }

        #endregion        

        #region Title Property
        /// <summary>
        /// Property title
        /// </summary>
        private string title;

        /// <summary>
        /// Property Title
        /// </summary>
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        #endregion

        #region QuestionCollection Property
        /// <summary>
        /// Property questionCollection
        /// </summary>
        private Collection<Question> questionCollection;

        /// <summary>
        /// Property QuestionCollection
        /// </summary>
        public Collection<Question> QuestionCollection
        {
            get { return this.questionCollection; }
            private set { this.questionCollection = value; }
        }
        #endregion

        #region Constructor

        /// <summary>
        /// Constructeur par défaut
        /// </summary>
        public Questionnaire()
        {
            this.Identifier = Guid.Empty;
            this.QuestionCollection = new Collection<Question>();
        } 

        #endregion
    }
}
